Objects Reference

light_map constructor

Prototype

light_map(int f,int p,int x,int y,int sx,int sy,int bp=3)

Parameters

Parameter Type Description
f int face using this light map (can be -1 for non coplanar faces)
p int light_map_pic for the light_map
x int x offset into light_map_pic
y int y offset into light_map_pic
sx int x size of light_map (power of 2 or not)
sy int y size of light_map (power of 2 or not)
bp int light_map bytes per pixel:
3 - RGB (light map)
4 - RGBA (fog map)

Remarks

Creates the light map and allocates the bmp array.